package com.zhengjiang.cloud.gateway.fallback;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("error")
public class FallbackController {

    @RequestMapping("/fallback")
    public String fallBack(){
        log.error("Invoke service failed...");
        return "service is not available!";
    }
}

